﻿{% extends 'base.html' %}
{% from 'macros.html' import form_field %}

{% block title %}
    <h1 class="head">工 作 情 况</h1>
{% endblock %}

{% block content %}
     {%for note in notes%}
	     <div class="alignleft">
                           <div>
                               <span class="sub">主题</span>
                               <a href="{{ url_for("editform",note_id=note.id)}}" class="key">{{note.subject}}</span></a>
                               <span class="sub">关键词</span>
                               <a href="{{ url_for("editform",note_id=note.id)}}" class="key">{{note.keyword1}}</a>
                               <span class="sub">时间</span>
                               <a href="{{ url_for("editform",note_id=note.id)}}" class="key">{{note.keyword2}}</a>
                           </div>
                           <div class="text">
                                   <a class="content" href="{{ url_for("editform",note_id=note.id)}}">内容:{{note.text}}</a>
                           </div>
                           <div>
                                     <form method="post" action="{{url_for("deleteform", note_id=note.id)}}"}>
                                           <span>
                                                   <a class="edit" href="{{ url_for('editform',note_id=note.id)}}"><span class="color">编辑</span></a>
                                           </span>
                                           <span>
                                                   {{ form.delete(class_="del") }}
                                           </span>
                                    </form>
                            </div>
                       </div> 
    {%endfor%}
  {% endblock %}

{% block link %}
    <nav>
        <ul>
            <li>
                <a class="bottom" href="{{ url_for('recordform') }}">recordform&#8629;</a>
            </li>
            <li>
                <a class="bottom" href="{{ url_for('showform') }}">showform&#8629;</a>
            </li>
        </ul>
    </nav>
{% endblock %}